import {colorUISdk} from "../../config/mp-sdk";
import {updateCurrentPageShare} from "../../mp-sdk/lib/share";

const app = getApp();
let interstitialAd = null
Page({
    data: {
        scrollTop: 0
    },
    onLoad(options) {
    },
    getColor() {
        let colorArr = ['yellow', 'orange', 'red', 'pink', 'mauve', 'purple', 'blue', 'cyan', 'green', 'olive', 'grey', 'brown'];
        let a = colorArr[Math.floor(Math.random() * colorArr.length)]
        console.log(a)
    },
    toGame() {
        wx.navigateTo({
            url: '/pages/yd_game/home'
        })
    },
    onShow() {
    },
    // 监听用户滑动页面事件。
    onPageScroll(e) {
        this.setData({scrollTop: e.scrollTop})
    }
})
